package com.niguang.labour.admin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 
 * @since 2018-09-29
 */
@TableName("work_wechat_push")
public class WorkWechatPush extends Model<WorkWechatPush> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("user_name")
	private String userName;
	@TableField("user_phone")
	private String userPhone;
	@TableField("site_id")
	private Long siteId;
	@TableField("open_id")
	private String openId;
	@TableField("create_time")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public static final String ID = "id";

	public static final String USER_NAME = "user_name";

	public static final String USER_PHONE = "user_phone";

	public static final String SITE_ID = "site_id";

	public static final String OPEN_ID = "open_id";

	public static final String CREATE_TIME = "create_time";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkWechatPush{" +
			"id=" + id +
			", userName=" + userName +
			", userPhone=" + userPhone +
			", siteId=" + siteId +
			", openId=" + openId +
			", createTime=" + createTime +
			"}";
	}
}
